package com.ruoyi.message.notice.vo;

import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * -- 通知对象 chat_record
 * 
 * @author ruoyi
 * @date 2025-03-24
 */
@Data
public class NoticeVO
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private String id;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long senderId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private String receiverId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 消息类型 0-文本 1-图片 2-文件 */
    @Excel(name = "消息类型 0-文本 1-图片 2-文件")
    private String messageType;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isRead;

    @Excel(name = "发送信息者的数据")
    private String userType;
    /**
     * 发送的时间
     */
    private String timestamp;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("senderId", getSenderId())
            .append("receiverId", getReceiverId())
            .append("messageContent", getMessageContent())
            .append("messageType", getMessageType())
            .append("userType", getUserType())
            .append("isRead", getIsRead())
            .toString();
    }
}
